package com.msa.msaportal.dao.impl;



import com.msa.msaportal.common.hibernate.Finder;
import com.msa.msaportal.common.hibernate.HibernateBaseDao;
import com.msa.msaportal.dao.IUserTileDao;
import com.msa.msaportal.entity.UserTile;

public class UserTileDaoImpl extends HibernateBaseDao<UserTile, Integer> implements IUserTileDao {

	@Override
	public UserTile getUserModules(String userId) {	
		String hql = "from UserTile bean where bean.USER_ID=?";	
		return  (UserTile) super.findUnique(hql,userId);
	}

	@Override
	protected Class<UserTile> getEntityClass() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void insertUserModules(UserTile userTile) {
		// TODO Auto-generated method stub
		this.getSession().save(userTile);
	}

	@Override
	public void updateUserModules(UserTile userTile) {
		// TODO Auto-generated method stub
		this.getSession().update(userTile);
	}

	
	

	

}
